package com.zh.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商家表
 * </p>
 *
 * @author wiki
 * @since 2018-03-22
 */
public class Business extends Model<Business> {

    private static final long serialVersionUID = 1L;

    /**
     * 商家ID
     */
	private String id;
    /**
     * 商家名
     */
	private String name;
    /**
     * 备注
     */
	private String remark;
    /**
     * 状态：1，正常，2下线
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("modified_time")
	private Date modifiedTime;
    /**
     * logo
     */
	private String logo;
    /**
     * 总查询次数
     */
	@TableField("all_query_count")
	private Integer allQueryCount;
    /**
     * 剩余次数
     */
	@TableField("has_count")
	private Integer hasCount;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public Integer getAllQueryCount() {
		return allQueryCount;
	}

	public void setAllQueryCount(Integer allQueryCount) {
		this.allQueryCount = allQueryCount;
	}

	public Integer getHasCount() {
		return hasCount;
	}

	public void setHasCount(Integer hasCount) {
		this.hasCount = hasCount;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
